
@import "./base";

@vw:3.75vw;

body {
  background-color: #f9fafb;
}

header {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: (50 / @vw);
  padding: 0 (15 / @vw);
  background-color: #fff;
  justify-content: space-between;
  align-items: center;
  .left {
    width: (235 / @vw);
    height: (50 / @vw);
    background: url(../assets/head.png) no-repeat;
    background-size: contain;
  }
  a {
    width: (80 / @vw);
    height: (30 / @vw);
    line-height: (30 / @vw);
    border-radius: (15 / @vw);
    background-color: #ffe31b;
    text-align: center;
    font-size: (14 / @vw);
  }
}

.search {
  margin-top: (50 / @vw);
  height: (52 / @vw);
  padding: (10 / @vw) (15 / @vw);
  .txt {
    height: (32 / @vw);
    line-height: (32 / @vw);
    text-align: center;
    background-color: #f2f4f5;
    border-radius: (16 / @vw);
    font-size: (14 / @vw);
    color: #a1a4b3;
  }
  .iconfont {
    font-size: (16 / @vw);
  }
}

.banner {
  height: (108 / @vw);
  padding: 0 (15 / @vw);
  li {
    width: (345 / @vw);
    height: (108 / @vw);
    img {
      height: 100%;
      width: 100%;
      object-fit: cover;
      border-radius: (5 / @vw);
    }
  }
}

.list {
  padding: 0 (15 / @vw);
  li {
    width: (345 / @vw);
    height: (105 / @vw);
    border-radius: (10 / @vw);
    background-color: #fff;
    display: flex;
    margin-bottom: (16 / @vw);
    img {
      width: (105 / @vw);
      height: (105 / @vw);
      border-radius: (10 / @vw);
      margin-right: (20 / @vw);
    }
    a {
      display: block;
      font-size: (12 / @vw);
      color: #a1a4b3;
      line-height: 1.8;
    }
    .more {
      font-size: (14 / @vw);
      color: #333;
      .iconfont {
        font-size: (16 / @vw);
      }
    }
  }
  li:last-child {
    margin-bottom: 0;
  }
}

.title {
  display: flex;
  justify-content: space-between;
  line-height: (26 / @vw);
  height: (62 / @vw);
  padding-top: (20 / @vw);
  padding-bottom: (16 / @vw);
  h4 {
    font-size: (20 / @vw);
  }
  a {
    font-size: (12 / @vw);
    color: #a1a4b3;
    .iconfont {
      font-size: (12 / @vw);
    }
  }
}

.recommend {
  padding: 0 (15 / @vw);
  ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    li {
      width: (105 / @vw);
      height: (143 / @vw);
      margin-bottom: (16 / @vw);
      .pic {
        position: relative;
        width: (105 / @vw);
        height: (105 / @vw);
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          border-radius: (10 / @vw);
        }
        span {
          position: absolute;
          width: (70 / @vw);
          height: (28 / @vw);
          left: 0;
          bottom: 0;
          background-color: rgba(0, 0, 0, 0.4);
          border-radius: 0 (10 / @vw) 0 (10 / @vw);
          text-align: center;
          line-height: (28 / @vw);
          font-size: (14 / @vw);
          color: #fff;
        }
      }
      .txt {
        font-size: (14 / @vw);
      }
    }
  }
}

.download {
  position: fixed;
  display: flex;
  align-items: center;
  width: (345 / @vw);
  height: (45 / @vw);
  left: (15 / @vw);
  bottom: (30 / @vw);
  padding: 0 (10 / @vw) 0 (15 / @vw);
  background-color: #fff;
  border-radius: (22 / @vw) ;
  img {
    width: (36 / @vw);
    height: (36 / @vw);
    margin-right: (10 / @vw);
  }
  p {
    flex: 1;
    font-size: (14 / @vw);
  }
  span {
    width: (32 / @vw);
    height: (32 / @vw);
    background-color: #f2f3f5;
    text-align: center;
    line-height: (32 / @vw);
    border-radius: (16 / @vw);
  }
  .iconfont {
    font-size: (16 / @vw);
  }
}